package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Messages对象", description = "消息")
public class Messages implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("订单id")
    private String orderId;

    @ApiModelProperty("订单阶段：	ZZD_YU_SHEN 预审	ZZD_KAN__CHA 勘察	ZZD_SHE_JI 设计	ZZD_SHI_GONG 施工	ZZD_BING_WANG 并网	ZZD_JIE_SUAN 阶段	ZZD_ZHONG_ZHI 终止	ZZD_FINISHED 完成	")
    private String stage;

    @ApiModelProperty("订单状态：	事件+状态+动作	eg：	YSXX_WAITING_FILLED  预审信息待填写	TKXX_WAITING_INNER_AUDIT  踏勘信息内审	 	")
    private String state;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("消息类型编码[户用，工商业等]")
    private String bizCode;

    @ApiModelProperty("消息来源类型编码[哪个公司或者哪个系统]")
    private String systemCode;

    @ApiModelProperty("消息跳转路径")
    private String url;

    @ApiModelProperty("状态[0：未读；1：已读；]")
    private Boolean status;

    @ApiModelProperty("内容")
    private String content;

    private Timestamp createdTime;

    private Timestamp updatedTime;
}
